<? 
switch (context('format')) { 

	case 'xml':
		@include block('xml');

		if (component_exists('feed')) { @include component('feed'); }
	
		@include block('_xml'); 
		break;

	case 'html':
	default:
		@include block('html'); ?>
			
			<section id="content">
				<? foreach (components() as $c) { include component($c); } ?>
			</section>
			
			<aside>
				<? foreach (components(array('tag' => 'sidebar')) as $c) { include component($c, 'sidebar'); } ?>
			</aside>
		
			<div class="clearer"></div>

		<? @include block('_html'); 
		break;
}

